package lab01;

import java.util.Scanner;

/**
 * Created by 婷婷 on 2017/10/1.
 */
public class Test12 {
    public static void main(String[] args) {
        System.out.println("请输入一个1-9999以内的数");
        Scanner input=new Scanner(System.in);
        int num = input.nextInt();
        int unit = num%10;
        int decade = num/10%10;
        int hundreds=num/100%10;
        int kilobit = num/1000;
        if (unit==kilobit&&decade==hundreds){
            System.out.println(num+"是回文");
        }else{
            System.out.println(num+"不是回文");
        }
    }
}
